import {createRouter,createWebHistory} from 'vue-router'

//定义路由关系
const routes = [
    {path: '/', redirect:'/login'},
    {path:'/Hello',component:()=> import("../components/index.vue")},
    {path:'/login',component:()=>import("../components/login/login.vue")},
]

//创建路由器
const router = createRouter({
    history:createWebHistory(),
    routes:routes
})

//导出路由
export default router
